#include <iostream>
#include "speechManager.h"
#include "ctime"

using namespace std;

int main() {
    system("chcp 65001");
    srand((unsigned int)time(NULL));
    SpeechManager sm;
    int choice = 0;
    while (true){
        sm.showMenu();
        cout << "请输入您的选择: " << endl;
        cin >> choice;
        switch(choice){
            case 1:
                sm.startSpeech();
                break;
            case 2:
                sm.showRecord();
                break;
            case 3:
                sm.clearRecord();
                break;
            case 0:
                sm.exitSystem();
                exit(0);
            default:
                break;
        }
    }
}
